<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div class="topdiv">
    <div class="logoname">曦雨</div>
    <div class="menu">
        <router-link to="/login" class="link">登录</router-link>
        <router-link to="/index" class="link">首页</router-link>
        <div class="link" @click="jump()">我的</div>
        <div class="avatar"><img src="../static/up;oad/category/爱律头像.jpg"></div>
        <div class="link" @click="logout()">退出</div>
    </div>
</div>

<style>
    .menu {
        display: flex;
        height: 60px;
        width: 100%;
        line-height: 60px;
        position: fixed;
        left: 80%;
    }

    .link {
        text-decoration: none;
        color: rgb(255, 255, 255);
        padding: 0 10px;
    }

    .logoname {
        font-size: 30px;
        font-weight: 900;
        position: fixed;
        left: 30px;
        line-height: 60px;
        background-image: -webkit-linear-gradient(
                left,
                blue,
                #66ffff 10%,
                #cc00ff 20%,
                #cc00cc 30%,
                #ccccff 40%,
                #00ffff 50%,
                #ccccff 60%,
                #cc00cc 70%,
                #cc00ff 80%,
                #66ffff 90%,
                blue 100%
        );
        -webkit-text-fill-color: transparent;
        background-clip: text;
        -webkit-background-clip: text;
        background-size: 200% 100%;
        animation: masked-animation 4s linear infinite;
    }

    @keyframes masked-animation {
        0% {
            background-position: 0 0;
        }
        100% {
            background-position: -100% 0;
        }
    }

    .topdiv {
        width: 100%;
        height: 60px;
        background-color: rgb(42, 42, 42);
        top: 0;
        left: 0;
        font-size: 20px;
        position: fixed;
        z-index: 9999;
    }

    .link:hover {
        filter: drop-shadow(0 0 2em #141414aa);
        background-color: rgba(169, 169, 169, 0.8);
    }

    .avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
        margin-top: 5px;
    }

    .avatar img {
        transform: translate(-15%, -20%);
        width: 80px;
        height: 80px;
    }

    .avatar:hover {
        filter: drop-shadow(0 0 2em #141414aa);
        background-color: rgba(169, 169, 169, 0.8);
    }
</style>

</body>
</html>